﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using eProject_SEM3_SecurityServices.DataAccess;
using eProject_SEM3_SecurityServices.ObjectClass;

namespace eProject_SEM3_SecurityServices.Bussiness
{
    public class BContractDetail
    {
        DContractDetail dcontractDetail = null;

        public BContractDetail()
        {
            dcontractDetail = new DContractDetail();
        }

       /* @contractId int,
	    @startDay varchar(250),
	    @endDay varchar(250),
	    @customerId int,
	    @numberOfEmployee int,
	    @registryDay nvarchar(50),
        @serviceId int
        */
        public bool AddNewContractDetail(OContractDetail contractdetail)
        {
           return dcontractDetail.AddNewContractDetail(contractdetail);
        }
        public List<OContractDetail> getContractDetailList()
        {
            return dcontractDetail.getContractDetailList();
        }
        public OContractDetail getContractDetail(int contractID)
        {
            return dcontractDetail.getContractDetails(contractID);
        }
        public bool deleteContractDetail(int id)
        {
            return dcontractDetail.deleteContractDetail(id);
        }
        public bool updateContractDetail(OContractDetail oContractDetail)
        {
            return dcontractDetail.updateContractDetail(oContractDetail);
        }
    }
}